package linklist;

public class SingleLinkTest {
    public static void main(String[] args) {

        MySingleList list = new MySingleList();
        list.addFirst(11);
        list.addFirst(22);
        list.addFirst(33);
        list.addFirst(44);
        list.addFirst(55);

//        list.display();
        list.clear();


        list.addLast(44);
        list.addLast(33);
        list.addLast(44);
        list.addLast(55);
        list.addLast(66);
        list.addLast(44);
        list.addLast(77);
        list.addLast(44);
        list.display();


       // list.addIndex(2,11);
        list.removeAllKey(44);

        list.display();
//        System.out.println(list.size());

//        System.out.println(list.contains(33));
    }
}
